<!-- saved from url=(0022)http://internet.e-mail -->
<html>
<head>
<title>{TITLE}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript" src="js/numeric.js"></script>
<script language="javascript" src="js/email.js"></script>
<script language="javascript">
<!--
function validateForm(iform) {
  	//return true;
	if (iform.assessedValue.value=="") {
		alert("assessed value required.");
		iform.assessedValue.focus();
		return false;
	} 
	else if (!isNumeric(unformatCurrency(iform.assessedValue.value))) {
		alert("Invalid assessed value.");
		iform.assessedValue.focus();
		return false;
	}
	calculateTotalNumber();
	return true;
}
function calculateTotalNumber(){
		numeric = true;
	if (!isNumeric(unformatCurrency(document.PlantsTreesEncode.nonFruitBearing.value))){
		alert("numeric values only.");
		document.PlantsTreesEncode.nonFruitBearing.focus();
		return false;
	}
	if (!isNumeric(unformatCurrency(document.PlantsTreesEncode.fruitBearing.value))){
		alert("numeric values only.");
		document.PlantsTreesEncode.fruitBearing.focus();
		return false;
	}
	if (numeric){
		num = 1*unformatCurrency(document.PlantsTreesEncode.nonFruitBearing.value) + 1*unformatCurrency(document.PlantsTreesEncode.fruitBearing.value);
		document.PlantsTreesEncode.totalNumber.value = num;
	}
	calculateMarketValue();
	//calculateAdjustedMarketValue();
	//calculateAssessedValue();
	return true;
}
function calculateMarketValue(){
		numeric = true;
	if (!isNumeric(unformatCurrency(document.PlantsTreesEncode.totalNumber.value))){
		alert("numeric values only.");
		document.PlantsTreesEncode.totalNumber.focus();
		return false;
	}
	if (!isNumeric(unformatCurrency(document.PlantsTreesEncode.unitPrice.value))){
		alert("numeric values only.");
		document.PlantsTreesEncode.unitPrice.focus();
		return false;
	}
	if (numeric){
		num = unformatCurrency(document.PlantsTreesEncode.totalNumber.value) * unformatCurrency(document.PlantsTreesEncode.unitPrice.value);
		document.PlantsTreesEncode.marketValue.value = num;
	}
	calculateAdjustedMarketValue();
	return true;
}
function calculateValueAdjustment(){
	numeric = true;
	if (!isNumeric(document.PlantsTreesEncode.percentAdjustment.value)){
		alert("numeric values only.");
		document.PlantsTreesEncode.percentAdjustment.focus();
		return false;
	}
	if (numeric){
		document.PlantsTreesEncode.valueAdjustment.value = document.PlantsTreesEncode.percentAdjustment.value - 100;
	}
	calculateAdjustedMarketValue();
	return true;
}
function calculateAdjustedMarketValue(){
	num = unformatCurrency(document.PlantsTreesEncode.marketValue.value) * (document.PlantsTreesEncode.percentAdjustment.value/100);
		document.PlantsTreesEncode.adjustedMarketValue.value = formatCurrency(num);
	calculateAssessedValue();
	return true;
}
function calculateAssessedValue(){
	numeric = true;
	if (!isNumeric(document.PlantsTreesEncode.assessmentLevel.value)){
		alert("numeric values only.");
		document.PlantsTreesEncode.assessmentLevel.focus();
		return false;
	}
	if (numeric){
		num = unformatCurrency(document.PlantsTreesEncode.adjustedMarketValue.value) * (document.PlantsTreesEncode.assessmentLevel.value/100);
		num = roundToNearestTen(num);
		document.PlantsTreesEncode.assessedValue.value = formatCurrency(num);
	}
	return true;
}
function setDefaults(){
	setDays('as_');
	setDays('re_');
	setDays('av_');
	setDefaultDay('as_','{as_day}');
	setDefaultDay('re_','{re_day}');
	setDefaultDay('av_','{av_day}');
	window.resizeTo(600,500);
	pid = "{propertyID}";
	if (pid){
		calculateTotalNumber();
	}
}
function setDefaultDay(type,day){
	eval("document.PlantsTreesEncode."+type+"day.options["+day+"-1].selected = true");
}
function refreshParent() {
	//window.opener.location.reload(true);
	window.opener.focus();
	window.close();
}
function setDays(type) {
  var obj=eval("document.PlantsTreesEncode."+type+"day");
  daySelected = obj.selectedIndex;
  objlen=obj.length;
  for (i=objlen-1; i>=28; i--) obj.options.remove(i);
  month_val = eval("document.PlantsTreesEncode."+type+"month.value");
  switch(month_val) {
	case "2":
		birthYear = eval("document.PlantsTreesEncode."+type+"year.value");
		if ((birthYear % 4) == 0) obj.options[28]=new Option("29");
		if (daySelected > 27){
  			daySelected = 27;
		}
	  	break;
	case "4":
	case "6":
	case "9":
	case "11":
		obj.options[28]=new Option("29");
		obj.options[29]=new Option("30");
		if (daySelected > 29){
  			daySelected = 29;	
		}
		break;	  
	default:
		obj.options[28]=new Option("29");
		obj.options[29]=new Option("30");
		obj.options[30]=new Option("31");
		break;
  }
  obj.options[daySelected].selected = true;
}
//-->
</script>

<link rel="stylesheet" href="css/elgu.css" type="text/css">
</head>
<body bgcolor="#CCCCCC" text="#000000" background="images/background/bg_middle.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="javascript: setDefaults();">
<form name="PlantsTreesEncode" method="post" action="PlantsTreesEncode.php{Session}" onSubmit="javascript: return validateForm(this);">
  <!-- BEGIN FORM -->
  <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
      <td colspan="3">&nbsp;</td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td> 
        <table width="90%" border="0" align="center" cellpadding="5" cellspacing="1" class="fileds_comment">
	 <tr bgcolor="#F6F6F6"> 
	  <td colspan="3" class="fileds_comment" valign="middle" align="left"><b>PLANTS/TREES 
	   PROPERTY INFORMATION</b></td>
	 </tr>
	 <tr bgcolor="#CCCCCC"> 
	  <td colspan="3" class="fileds_comment" align="left" nowrap>Identification 
	   Numbers </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" valign="middle" nowrap bgcolor="#F6F6F6" width="100">&nbsp;</td>
	  <td class="fileds_comment" bgcolor="#F6F6F6"> <input type="text" value="{arpNumber}" name="arpNumber" maxlength="32" size="30"> 
	   <br>
	   (ARP Number) </td>
	  <td class="fileds_comment" bgcolor="#F6F6F6"> <input type="text" value="{propertyIndexNumber}" name="propertyIndexNumber" size="30"> 
	   <br>
	   (PIN) </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" valign="middle" nowrap bgcolor="#F6F6F6" width="100">&nbsp;</td>
	  <td class="fileds_comment" bgcolor="#F6F6F6"> <input type="text" value="{surveyNumber}" name="surveyNumber" maxlength="32" size="30"> 
	   <br>
	   (Survey Number) </td>
	  <td class="fileds_comment" bgcolor="#F6F6F6">&nbsp;</td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="left" bgcolor="#CCCCCC" colspan="3">Location 
	   Details </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">landPin</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="landPin" value="{landPin}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" bgcolor="#CCCCCC" colspan="3" align="left">Adminisrator</td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" rowspan="3" bgcolor="#F6F6F6"> 
	   <input type="hidden" name="personID" value="{personID}">
	   Name</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="lastName" value="{lastName}" size="30"> 
	   <br>
	   (lastname) </td>
	 </tr>
	 <tr bgcolor="#F6F6F6"> 
	  <td class="fileds_comment" colspan="2"> <input type="text" name="firstName" value="{firstName}" size="30"> 
	   <br>
	   (firstname) </td>
	 </tr>
	 <tr bgcolor="#F6F6F6"> 
	  <td class="fileds_comment" colspan="2"> <input type="text" name="middleName" value="{middleName}" size="30"> 
	   <br>
	   middlename </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6" rowspan="3"> 
	   <input type="hidden" name="addressID" value="{addressID}">
	   Address</td>
	  <td class="fileds_comment" bgcolor="#F6F6F6"> <input type="text" name="number" value="{number}" size="30"> 
	   <br>
	   (number) </td>
	  <td class="fileds_comment" bgcolor="#F6F6F6"> <input type="text" name="street" value="{street}" size="30"> 
	   <br>
	   (street) </td>
	 </tr>
	 <tr bgcolor="#F6F6F6"> 
	  <td class="fileds_comment"> <input type="text" name="barangay" value="{barangay}" size="30"> 
	   <br>
	   (barangay) </td>
	  <td class="fileds_comment"> <input type="text" name="district" value="{district}" size="30"> 
	   <br>
	   (district) </td>
	 </tr>
	 <tr bgcolor="#F6F6F6"> 
	  <td class="fileds_comment"> <input type="text" name="municipalityCity" value="{municipalityCity}" size="30"> 
	   <br>
	   (municipality/city) </td>
	  <td class="fileds_comment"> <input type="text" name="province" value="{province}" size="30"> 
	   <br>
	   (province) </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">ContactNumber</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="telephone" value="{telephone}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Email</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="email" value="{email}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="left" bgcolor="#CCCCCC" colspan="3">Plants 
	   and Trees Appraisal</td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Product Class</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="productClass" value="{productClass}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Area Planted</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="areaPlanted" value="{areaPlanted}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Non-Fruit Bearing</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="nonFruitBearing" value="{nonFruitBearing}" size="30" onBlur="javascript: calculateTotalNumber();"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Fruit Bearing</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="fruitBearing" value="{fruitBearing}" size="30" onBlur="javascript: calculateTotalNumber();"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Total Number</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="totalNumber" value="{totalNumber}" size="30" onFocus="javascript: calculateTotalNumber();" onBlur="javascript: calculateTotalNumber();"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Unit Price</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="unitPrice" value="{unitPrice}" size="30" onBlur="javascript: calculateMarketValue();"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Age</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="age" value="{age}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Market Value 
	  </td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="marketValue" value="{marketValue}" size="30" onFocus="javascript: calculateMarketValue();" onBlur="javascript: calculateMarketValue();"> 
	  </td>
	 </tr>
	 <tr align="left"> 
	  <td class="fileds_comment" bgcolor="#CCCCCC" colspan="3">Value Computation</td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Adjustment Factor</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <textarea name="adjustmentFactor" cols="50" rows="4">{adjustmentFactor}</textarea> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Percent Adjustment</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="percentAdjustment" value="{percentAdjustment}" size="30" onBlur="javascript: calculateValueAdjustment();">
	   % </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Value Adjustment</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="valueAdjustment" value="{valueAdjustment}" size="30" onFocus="javascript: calculateValueAdjustment();" onBlur="javascript: calculateAdjustedMarketValue();">
	   % </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Adjusted Market 
	   Value</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="adjustedMarketValue" value="{adjustedMarketValue}" size="30" onFocus="javascript: calculateAdjustedMarketValue();" onBlur="javascript: calculateAdjustedMarketValue()"> 
	  </td>
	 </tr>
	 <tr align="left"> 
	  <td class="fileds_comment" bgcolor="#CCCCCC" colspan="3">Property Assessment 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Kind</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="kind" value="{kind}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Actual Use</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="actualUse" value="{actualUse}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Assessment Level 
	  </td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="assessmentLevel" value="{assessmentLevel}" size="30" onBlur="javascript: calculateAssessedValue();">
	   % </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Assessed Value 
	  </td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="assessedValue" value="{assessedValue}" size="30" onFocus="javascript: calculateAssessedValue();" onBlur="javascript: calculateAssessedValue();"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Effectivity</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="effectivity" value="{effectivity}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="right" bgcolor="#F6F6F6">Taxability</td>
	  <td class="fileds_comment" colspan="2" bgcolor="#F6F6F6"> <input type="text" name="taxability" value="{taxability}" size="30"> 
	  </td>
	 </tr>
	 <tr> 
	  <td class="fileds_comment" align="center" valign="middle" bgcolor="#F6F6F6">&nbsp; 
	  </td>
	  <td colspan="2" class="fileds_comment" align="center" valign="middle" bgcolor="#F6F6F6"> 
	   <input type="hidden" name="formAction" value="save"> <input type="hidden" name="propertyID" value="{propertyID}"> 
	   <input type="hidden" name="afsID" value="{afsID}"> 
	   <!-- BEGIN SubmitButton -->
	   <input type="submit" value="Submit" name="submit"> <input type="reset" name="Submit2" value="Reset" > 
	   <!-- END SubmitButton -->
	   <input type="button" name="Button" value="Close"  onClick="refreshParent();" > 
	  </td>
	 </tr>
	</table>
      </td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="3">&nbsp;</td>
    </tr>
  </table>
  <!-- END FORM -->
</form>
</body>
</html>
